package com.onesports.intelligent.k12.polarlight.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 系统配置项
 * @author Wu
 */

public enum SysConfigTypeEnum implements IEnum<String> {

    /**
     * 发起拼班后X小时，满足最低人数要求，则拼班成功
     */
    A("A","发起拼班后X小时，满足最低人数要求，则拼班成功"),
    B("B","拼班成功后，团员退出，班级上课人数连续X次 低于最低开班要求，班级自动解散"),
    C("C","上课前X小时如果不满开班最低人数，则该节课课表作废"),
    D("D","考勤签到后X小时，家长未确认则自动扣款"),
    E("E","消课后家长支付课款，团长获得团员实际支付金额X%佣金"),
    F("F","每节课课前X小时，系统自动向教练发送上课提醒消息"),
    G("G","每节课课前X小时，系统自动向家长发送上课提醒消息"),
    H("H","课程结束提醒：课程结束后向家长、教练发送课程结束提醒"),
    WECHAT_QRCODE("WECHAT_QRCODE","设置企业微信客服二维码");

    private String code;
    private String text;

    SysConfigTypeEnum(String code, String text){
        this.code = code;
        this.text = text;
    }

    @Override
    public String getValue() {
        return this.code;
    }

    @JsonValue
    public String getText() {
        return this.text;
    }


}
